package org.fanjr.simplify.rest.storage;

import org.fanjr.simplify.rest.model.SimplifyServerModel;

/**
 * 
 * @author fanjr@vip.qq.com
 * @since 20190222 10:29:28
 */
public class SimplifyBeanBuilderStorage extends SimplifyStorage<String, SimplifyServerModel> {

	public static final SimplifyBeanBuilderStorage INSTANCE = new SimplifyBeanBuilderStorage();

	private SimplifyBeanBuilderStorage() {
		// skip
	}

	public SimplifyServerModel buildBeanModel(String beanName) {
		return buildAndGet(beanName);
	}

	public SimplifyServerModel getServerModel(String beanName) {
		return get(beanName);
	}

	@Override
	protected SimplifyServerModel buildFunction(String beanName, Object[] args) {
		return new SimplifyServerModel();
	}

}
